import UAParser from "ua-parser-js";
export const parseBrowser = (ua:string) => {
  const parser = new UAParser(ua);
  const result = parser.getBrowser();
  if (result.name) {
    return result.name + " " + result.version;
  }
  return "";
};
export const parseOS = (ua:string) => {
  const parser = new UAParser(ua);
  const result = parser.getOS();
  if (result.name) {
    return result.name + " " + result.version;
  }
  return "";
};
